@charset "utf-8";
/* -------------------------------------------------
 * global css
 * ------------------------------------------------- */
*{
	outline: none;
	&:focus{
		outline: none;
	}
}

//body
body{
	background-color: $white;
	color: $defaultColor;
	font-family : 'Microsoft Yahei','Helvetica Neue',Helvetica,Tahoma,sans-serif,'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}
.wrap{
	position: relative;
}

.container{
	width: 1200px;
	margin: 0 auto;
}
.blur{
    filter: blur(3px);
    -webkit-filter: blur(3px);
}

// a
a{
	color: $normalColor;
	outline: none;
	&:hover{
		color: $themeColor;
		text-decoration: none;
		i{
			color: $themeColor;
		}
	}
	&:focus{
		outline: none;
	}
}
@mixin linkHover{
	&:hover {
        color: $themeColor;
    }
    &::before, &::after {
        font-size: 150%;
        font-weight: 100;
        line-height: 1;
        opacity: 0;
        position: absolute;
        top: 0;
        margin-top: -3px;
        transition: opacity 0.2s ease 0s, transform 0.2s ease 0s;
    }
    &::before {
        content: "[";
        left: -0.1em;
        transform: translateX(-100%);
    }
    &::after {
        content: "]";
        right: -0.1em;
        transform: translateX(100%);
    }
    &:hover::before, &:hover::after {
        opacity: 1;
        transform: translateX(0px);
    }
}
// i
i.fa{
	color: $defaultColor;
	margin-right: 3px;
	font-size: 18px;
}
i.fa-heart-o{
	color: $likeItColor;
}
i.fa-thumbs-o-up{
	color:#e79140;
}
i.fa-share-alt{
	color: #008751;
}
i.fa-comment-o{
	color: #3ca2e7;
}
i.fa-weibo{
	color: #d83a15;
}
i.fa-star{
	color: #ef4e1c;
}

// table
.tbl{
	display: table;
}
.tbl-cell{
	display: table-cell;
}
// float
.fl{
	float: left;
}
.fr{
	float: right;
}

// margin
.mt5{
	margin-top: $defaultMargin/2;
}
.mb5{
	margin-bottom: $defaultMargin/2;
}
.mt10{
	margin-top: $defaultMargin;
}
.mb10{
	margin-bottom: $defaultMargin;
}
.mt15{
	margin-top: $defaultMargin*1.5;
}
.mb15{
	margin-bottom: $defaultMargin*1.5;
}
.mt20{
	margin-top: $defaultMargin*2;
}
.mb20{
	margin-bottom: $defaultMargin*2;
}
.ml5{
	margin-left: $defaultMargin*2;
}
.mr5{
	margin-right: $defaultMargin*2;
}
.ml10{
	margin-left: $defaultMargin*2;
}
.mr10{
	margin-right: $defaultMargin*2;
}
.ml15{
	margin-left: $defaultMargin*2;
}
.mr15{
	margin-right: $defaultMargin*2;
}
.ml20{
	margin-left: $defaultMargin*2;
}
.mr20{
	margin-right: $defaultMargin*2;
}
// padding
.pt5{
	padding-top: $defaultMargin/2;
}
.pb5{
	padding-bottom: $defaultMargin/2;
}
.pt10{
	padding-top: $defaultMargin;
}
.pb10{
	padding-bottom: $defaultMargin;
}
.pt15{
	padding-top: $defaultMargin*1.5;
}
.pb15{
	padding-bottom: $defaultMargin*1.5;
}
.pt20{
	padding-top: $defaultMargin*2;
}
.pb20{
	padding-bottom: $defaultMargin*2;
}

.see-more-wrap{
	position: relative;
	.see-more-btn{
		padding: 3px 15px;
		color: $white;
		position: absolute;
		top: 0;
		background-color: $defaultAlpha;
		z-index: 1005;
		&:hover{
			text-decoration: underline;
		}
	}
}
.see-more-btn{
	right: 0;
	display:inline-block;
	position:absolute;
	top:0;
	color: black;
	padding: 2px 6px;
	&:hover{
		color:$white;
	}
}
.apr-ad .see-more-btn {
	left: 0;
	line-height: 1.5;
	a{
		display: inline;
		line-height: 1.5;
		width: auto;
		height: auto;
		vertical-align: bottom;
		color: $white;
	}
	i{
		color: $white;
		margin-left: 3px;
	}
}



// other
.level{
	i{
		font-weight: bold;
	}
	i.fa-mars{
		color: #0087e2;
	}
	i.fa-sun-o,i.fa-moon-o,i.fa-star-o{
		color: #df9f4c;
	}
	b{
		font-weight: normal;
	}
	s{
		font-style: normal;
		text-decoration: none;
	}
}
.edit-btn{
	font-weight: normal;
	i{
		font-weight: normal;
	}
}
.edit{
	display: inline-block;
	width: 120px;
}

a.append-more{
	color: $themeColor;
	margin-top: -20px;
	float: right;
}

.left-side-toggle{
    position: absolute;
    left: -80px;
    top: 60%;
    overflow: hidden;
    border: 1px solid $grayColor;
    transition: left 0.25s ease-out 0s;
    z-index: 100;
    h3{
    	cursor: pointer;
        float: right;
        background-color: $grayLightColor;
        color: $defaultColor;
        width: 20px;
        text-align: center;
        line-height: 1.5;
        height: 80px;
        i.fa{
        	margin: 0;
        }
    }
    .qr-code{
        float: right;
    }
    &.show{
    	left: 0;
    }
}

@mixin dbshadow($bot:26px,$wid:500px,$rotate:3deg,$br:28px){
	&::before, &::after {
		display: block;
		position: absolute;
		z-index: -1;
		bottom: $bot;
		width: $wid;
		height: 0;
		overflow: hidden;
		border-radius: 3px;
		clear: both;
		content: "";
		box-shadow: 0 0 15px 20px rgba(0, 0, 0, .3);
	}
	&::before {
		-webkit-transform: rotate(-$rotate);
		transform: rotate(-$rotate);
		left: 28px;
	}
	&::after {
		-webkit-transform: rotate($rotate);
		transform: rotate($rotate);
		right: 28px;
	}
}

@mixin boxCenter{
	width: 1200px;
	margin: 0 auto;
}

//imgCenter
@mixin imgCenter{
	display: block;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}
@mixin tbImgCenter($width: 100%, $height: 100%){
	width: $width;
	height: $height;
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	*display: block;
	*font-style: 175px;
	font-family: "Arial";
	img{
		max-width: $width;
		max-height: $height;
		vertical-align: middle;
	}
}

// box-shadow
@mixin lightBoxShadow{
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}
@mixin BoxShadow{
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
}


// transition
@mixin transformTransition{
	transition:transform 0.3s ease-out 0s;
}
@mixin opacityTransition{
	transition:opacity 0.3s ease-out 0s;
}
@mixin tranOptTransition{
	transition: transform 0.3s ease-out 0s,opacity 0.2s ease-out 0.1s;
}
@mixin allTransition{
	transition: all 0.3s ease-out 0s;
}